#ifdef HAVE_CONFIG_H
#        include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>


#include "support.h"
#include "menubar.h"
#include "file.h"
#include "newinfo.h"
#include "addgroup.h"
#include "clist.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
        g_object_set_data_full (G_OBJECT (component), name, \
                gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
        g_object_set_data (G_OBJECT (component), name, widget)

GtkWidget *
create_menubar(GtkWidget *window_main,GtkWidget *vbox_main,
				GtkTooltips *tooltips,GtkAccelGroup *accel_group)
{
	GtkWidget *menubar; /*menu bar pointer*/
        /*------this pointers used to make '文件' item of menu bar--------*/
        GtkWidget *menu_file;/*item '文件'*/
        GtkWidget *menu_file_menu;
        GtkWidget *item_file_new_info; /*item '新建信息'*/
        GtkWidget *image111;
        GtkWidget *item_file_add_group; /*item '添加分组'*/
        GtkWidget *image112;
        GtkWidget *item_file_save; /*item '保存修改'*/
        GtkWidget *image113;
        GtkWidget *separator_file;
        GtkWidget *quit_easyblog; /*item '退出'*/
        GtkWidget *image114;
        /*--------this pointers used to make '编辑' item of menu bar-------*/
        GtkWidget *menu_edit; /*item '编辑'*/
        GtkWidget *menu_edit_menu;
        GtkWidget *item_edit_open_link;
        GtkWidget *image_open;
        GtkWidget *separator_open;
        GtkWidget *item_edit_find_info;
        GtkWidget *image_find;
        GtkWidget *separator_find;
        
        GtkWidget *item_edit_delete_info; /*item '删除信息'*/
        GtkWidget *image115;
        GtkWidget *separator_edit_one; 
        GtkWidget *item_edit_delete_group; /*item '删除分组'*/
        GtkWidget *image116;
        GtkWidget *separator_edit_tow; 
        GtkWidget *item_edit_copy; /*item '复制链接'*/
        GtkWidget *image117;
        GtkWidget *separator_edit_three; 
        
        GtkWidget *item_edit_copy_menu;
        GtkWidget *item_edit_copy_all;
        GtkWidget *image_edit_copy_all;
        GtkWidget *separator_edit_copy_all;
        GtkWidget *item_edit_copy_link;
        GtkWidget *image_edit_copy_link;
        /*----------------item '修改信息'------------------*/
         GtkWidget *item_edit_update;
	GtkWidget *image_edit_update;
	GtkWidget *item_edit_update_menu;
	GtkWidget *item_edit_update_group;
	GtkWidget *image_edit_update_group;
	GtkWidget *separator_edit_update;
	GtkWidget *item_edit_update_info;
	GtkWidget *image_edit_update_info;
        /*-----------------------------------------------------*/
        
        /*---------this pointers used to make '帮助' item of menu bar--------*/
        GtkWidget *menu_help; /*item '帮助'*/
        GtkWidget *menu_help_menu;
        GtkWidget *item_help_main; /*item '帮助主题'*/
        GtkWidget *image118;
        GtkWidget *separator_help;
        GtkWidget *item_help_me; /*item '关于我'*/
        GtkWidget *image119;
        
        /*create menu bar*/
        menubar = gtk_menu_bar_new ();
        gtk_widget_show (menubar);
        gtk_box_pack_start (GTK_BOX (vbox_main), menubar, FALSE, FALSE, 0);
        gtk_widget_set_size_request (menubar, -1, 30);
	/*create item '文件' for menu bar*/
        menu_file = gtk_menu_item_new_with_mnemonic (_("\346\226\207\344\273\266"));
        gtk_widget_show (menu_file);
        gtk_container_add (GTK_CONTAINER (menubar), menu_file);
	/*create each sub item for item '文件'*/
        menu_file_menu = gtk_menu_new ();
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_file), menu_file_menu);

        item_file_new_info = gtk_image_menu_item_new_with_mnemonic (_("\346\226\260\345\273\272\344\277\241\346\201\257"));
        gtk_widget_show (item_file_new_info);
        gtk_container_add (GTK_CONTAINER (menu_file_menu), item_file_new_info);
        gtk_tooltips_set_tip (tooltips, item_file_new_info, _("\346\226\260\345\273\272\344\270\200\344\270\252\344\277\241\346\201\257"), NULL);
        gtk_widget_add_accelerator (item_file_new_info, "activate", accel_group,
                                                    GDK_N, (GdkModifierType) GDK_CONTROL_MASK,
                                                     GTK_ACCEL_VISIBLE);

        image111 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image111);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_file_new_info), image111);

        item_file_add_group = gtk_image_menu_item_new_with_mnemonic (_("\346\267\273\345\212\240\345\210\206\347\273\204"));
        gtk_widget_show (item_file_add_group);
        gtk_container_add (GTK_CONTAINER (menu_file_menu), item_file_add_group);
        gtk_tooltips_set_tip (tooltips, item_file_add_group, _("\346\267\273\345\212\240\344\270\200\344\270\252\345\210\206\347\273\204"), NULL);
        gtk_widget_add_accelerator (item_file_add_group, "activate", accel_group,
                                                    GDK_A, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image112 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image112);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_file_add_group), image112);

        item_file_save = gtk_image_menu_item_new_with_mnemonic (_("\344\277\235\345\255\230\344\277\256\346\224\271"));
        gtk_widget_show (item_file_save);
        gtk_container_add (GTK_CONTAINER (menu_file_menu), item_file_save);
        gtk_tooltips_set_tip (tooltips, item_file_save, _("\344\277\235\345\255\230\344\277\256\346\224\271\347\232\204\345\206\205\345\256\271"), NULL);
        gtk_widget_add_accelerator (item_file_save, "activate", accel_group,
                                                    GDK_S, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image113 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image113);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_file_save), image113);

        separator_file = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_file);
        gtk_container_add (GTK_CONTAINER (menu_file_menu), separator_file);
        gtk_widget_set_sensitive (separator_file, FALSE);

        quit_easyblog = gtk_image_menu_item_new_with_mnemonic (_("\351\200\200\345\207\272"));
        gtk_widget_show (quit_easyblog);
        gtk_container_add (GTK_CONTAINER (menu_file_menu), quit_easyblog);
        gtk_tooltips_set_tip (tooltips, quit_easyblog, _("\351\200\200\345\207\272\346\234\254\347\250\213\345\272\217"), NULL);
        gtk_widget_add_accelerator (quit_easyblog, "activate", accel_group,
                                                    GDK_Q, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image114 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image114);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit_easyblog), image114);
	/*create each sub item for item '编辑'*/
        menu_edit = gtk_menu_item_new_with_mnemonic (_("\347\274\226\350\276\221"));
        gtk_widget_show (menu_edit);
        gtk_container_add (GTK_CONTAINER (menubar), menu_edit);

        menu_edit_menu = gtk_menu_new ();
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_edit), menu_edit_menu);

        /*------------------------------------------------*/
        
        item_edit_find_info = gtk_image_menu_item_new_with_mnemonic (_("\346\237\245\346\211\276\344\277\241\346\201\257"));
        gtk_widget_show (item_edit_find_info);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_find_info);
	gtk_tooltips_set_tip (tooltips, item_edit_find_info,"在当前分组里查找一条信息",NULL);
        gtk_widget_add_accelerator (item_edit_find_info, "activate", accel_group,
                                                     GDK_F, (GdkModifierType) GDK_CONTROL_MASK,
                                                     GTK_ACCEL_VISIBLE);

        image_find= gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_find);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_find_info), image_find);

        separator_find = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_find);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), separator_find);
        gtk_widget_set_sensitive (separator_find, FALSE);
        
         item_edit_open_link = gtk_image_menu_item_new_with_mnemonic (_("\346\211\223\345\274\200\351\223\276\346\216\245"));
        gtk_widget_show (item_edit_open_link);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_open_link);
        gtk_tooltips_set_tip (tooltips, item_edit_open_link, _("\346\211\223\345\274\200\351\200\
\211\344\270\255\344\277\241\346\201\257\347\232\204\345\215\232\345\256\242\351\
\223\276\346\216\245"), NULL);
        gtk_widget_add_accelerator (item_edit_open_link, "activate", accel_group,
                                                    GDK_O, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image_open= gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_open);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_open_link), image_open);

        separator_open = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_open);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), separator_open);
        gtk_widget_set_sensitive (separator_open, FALSE);
        /*------------------------------------------------*/
        
        item_edit_delete_info = gtk_image_menu_item_new_with_mnemonic (_("\345\210\240\351\231\244\344\277\241\346\201\257"));
        gtk_widget_show (item_edit_delete_info);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_delete_info);
        gtk_tooltips_set_tip (tooltips, item_edit_delete_info, _("\345\210\240\351\231\244\351\200\211\344\270\255\347\232\204\344\277\241\346\201\257"), NULL);
        gtk_widget_add_accelerator (item_edit_delete_info, "activate", accel_group,
                                                    GDK_D, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image115 = gtk_image_new_from_stock ("gtk-delete", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image115);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_delete_info), image115);

        separator_edit_one = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_edit_one);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), separator_edit_one);
        gtk_widget_set_sensitive (separator_edit_one, FALSE);

        item_edit_delete_group = gtk_image_menu_item_new_with_mnemonic (_("\345\210\240\351\231\244\345\210\206\347\273\204"));
        gtk_widget_show (item_edit_delete_group);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_delete_group);
        gtk_tooltips_set_tip (tooltips, item_edit_delete_group, _("\345\210\240\351\231\244\351\200\211\344\270\255\345\210\206\347\273\204\347\232\204\344\277\241\346\201\257"), NULL);
        gtk_widget_add_accelerator (item_edit_delete_group, "activate", accel_group,
                                                    GDK_G, (GdkModifierType) GDK_CONTROL_MASK,
                                                    GTK_ACCEL_VISIBLE);

        image116 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image116);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_delete_group), image116);

        separator_edit_tow = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_edit_tow);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), separator_edit_tow);
        gtk_widget_set_sensitive (separator_edit_tow, FALSE);

        item_edit_copy = gtk_image_menu_item_new_with_mnemonic (_("\345\244\215\345\210\266\351\223\276\346\216\245"));
        gtk_widget_show (item_edit_copy);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_copy);
        gtk_tooltips_set_tip (tooltips, item_edit_copy, _("\345\244\215\345\210\266\351\200\211\344\270\255\347\232\204\351\223\276\346\216\245\347\232\204\345\234\260\345\235\200"), NULL);
                                                                                   
        image117 = gtk_image_new_from_stock ("gtk-copy", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image117);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_copy), image117);
        
        /*---------------------------------------------------------*/     
         item_edit_copy_menu = gtk_menu_new ();
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (item_edit_copy), item_edit_copy_menu);

        item_edit_copy_all = gtk_image_menu_item_new_with_mnemonic (_("  \345\244\215\345\210\266\346\211\200\346\234\211  "));
        gtk_widget_show (item_edit_copy_all);
        gtk_container_add (GTK_CONTAINER (item_edit_copy_menu), item_edit_copy_all);
        gtk_tooltips_set_tip (tooltips, item_edit_copy_all, _("\345\244\215\345\210\266\351\200\211\344\270\255\350\241\214\347\232\204\346\211\200\346\234\211\344\277\241\346\201\257"), NULL);

        image_edit_copy_all = gtk_image_new_from_stock ("gtk-copy", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_edit_copy_all);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_copy_all), image_edit_copy_all);
        
        separator_edit_copy_all = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_edit_copy_all);
        gtk_container_add (GTK_CONTAINER (item_edit_copy_menu), separator_edit_copy_all);
        gtk_widget_set_sensitive (separator_edit_copy_all, FALSE);
        
        item_edit_copy_link = gtk_image_menu_item_new_with_mnemonic (_("  \345\244\215\345\210\266\351\223\276\346\216\245  "));
        gtk_widget_show (item_edit_copy_link);
        gtk_container_add (GTK_CONTAINER (item_edit_copy_menu), item_edit_copy_link);
        gtk_tooltips_set_tip (tooltips, item_edit_copy_link, _("\345\244\215\345\210\266\351\200\211\344\270\255\350\241\214\344\277\241\346\201\257\347\232\204\351\223\276\346\216\245"), NULL);

        image_edit_copy_link = gtk_image_new_from_stock ("gtk-network", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_edit_copy_link);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_copy_link), image_edit_copy_link);
        /*-----------------------------------------------------------*/
	
	separator_edit_three = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_edit_three);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), separator_edit_three);
        gtk_widget_set_sensitive (separator_edit_three, FALSE);

        item_edit_update= gtk_image_menu_item_new_with_mnemonic (_("\344\277\256\346\224\271\344\277\241\346\201\257"));
        gtk_widget_show (item_edit_update);
        gtk_container_add (GTK_CONTAINER (menu_edit_menu), item_edit_update);
        gtk_tooltips_set_tip (tooltips, item_edit_update, _("\344\277\256\346\224\271\344\270\200\344\270\252\344\277\241\346\201\257"), NULL);
                                                                                                    
        image_edit_update = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_edit_update);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_update), image_edit_update);
        
        /*------------------------------------------------------------------------*/
         item_edit_update_menu = gtk_menu_new ();
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (item_edit_update), item_edit_update_menu);

        item_edit_update_group = gtk_image_menu_item_new_with_mnemonic (_("  \344\277\256\346\224\271\345\210\206\347\273\204  "));
        gtk_widget_show (item_edit_update_group);
        gtk_container_add (GTK_CONTAINER (item_edit_update_menu), item_edit_update_group);
        gtk_tooltips_set_tip (tooltips, item_edit_update_group, _("\344\277\256\346\224\271\351\200\211\344\270\255\345\210\206\347\273\204\347\232\204\347\273\204\345\220\215"), NULL);

        image_edit_update_group = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_edit_update_group);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_update_group), image_edit_update_group);

        separator_edit_update = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_edit_update);
        gtk_container_add (GTK_CONTAINER (item_edit_update_menu), separator_edit_update);
        gtk_widget_set_sensitive (separator_edit_update, FALSE);

        item_edit_update_info = gtk_image_menu_item_new_with_mnemonic (_("  \344\277\256\346\224\271\344\277\241\346\201\257  "));
        gtk_widget_show (item_edit_update_info);
        gtk_container_add (GTK_CONTAINER (item_edit_update_menu), item_edit_update_info);
        gtk_tooltips_set_tip (tooltips, item_edit_update_info, _("\344\277\256\346\224\271\351\200\211\344\270\255\347\232\204\344\270\200\346\235\241\344\277\241\346\201\257"), NULL);

        image_edit_update_info = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image_edit_update_info);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_edit_update_info), image_edit_update_info);
        /*------------------------------------------------------------------------*/
        
        
        menu_help = gtk_menu_item_new_with_mnemonic (_("\345\270\256\345\212\251"));
        gtk_widget_show (menu_help);
        gtk_container_add (GTK_CONTAINER (menubar), menu_help);
	/*create each sub item for item '帮助'*/
        menu_help_menu = gtk_menu_new ();
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_help), menu_help_menu);

        item_help_main = gtk_image_menu_item_new_with_mnemonic (_("\345\270\256\345\212\251\344\270\273\351\242\230"));
        gtk_widget_show (item_help_main);
        gtk_container_add (GTK_CONTAINER (menu_help_menu), item_help_main);
        gtk_tooltips_set_tip (tooltips, item_help_main, _("\350\216\267\345\276\227\345\270\256\345\212\251"), NULL);
        gtk_widget_add_accelerator (item_help_main, "activate", accel_group,
                                                    GDK_F1, (GdkModifierType) 0,
                                                    GTK_ACCEL_VISIBLE);

        image118 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image118);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_help_main), image118);

        separator_help = gtk_separator_menu_item_new ();
        gtk_widget_show (separator_help);
        gtk_container_add (GTK_CONTAINER (menu_help_menu), separator_help);
        gtk_widget_set_sensitive (separator_help, FALSE);

        item_help_me = gtk_image_menu_item_new_with_mnemonic (_("\345\205\263\344\272\216\346\210\221"));
        gtk_widget_show (item_help_me);
        gtk_container_add (GTK_CONTAINER (menu_help_menu), item_help_me);
        gtk_tooltips_set_tip (tooltips, item_help_me, _("\345\205\263\344\272\216\344\275\234\350\200\205"), NULL);

        image119 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
        gtk_widget_show (image119);
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item_help_me), image119);
        
        g_signal_connect ((gpointer) item_file_new_info, "activate",
                                                      G_CALLBACK (on_item_file_new_activate),
                                                       NULL);
        g_signal_connect ((gpointer) item_file_add_group, "activate",
                                                       G_CALLBACK (on_item_file_add_group_activate),
                                                        NULL);
        g_signal_connect ((gpointer) item_file_save, "activate",
                                                        G_CALLBACK (on_item_file_save_activate),
                                                        (gpointer)&global_file);
        g_signal_connect ((gpointer) quit_easyblog, "activate",
                                                       G_CALLBACK (on_quit_easyblog_activate),
                                                        (gpointer)&global_file);
        g_signal_connect ((gpointer) item_edit_find_info, "activate",
                                                        G_CALLBACK (on_item_edit_find_info_activate),
                                                        (gpointer)&newinfo);                                                
        g_signal_connect ((gpointer) item_edit_open_link, "activate",
                                                        G_CALLBACK (on_item_edit_open_link_activate),
                                                        (gpointer)&clist);                                                                                                               
        g_signal_connect ((gpointer) item_edit_delete_info, "activate",
                                                        G_CALLBACK (on_item_edit_delete_info_activate),
                                                        (gpointer)&newinfo);
        g_signal_connect ((gpointer) item_edit_delete_group, "activate",
                                                        G_CALLBACK (on_item_edit_delete_group_activate),
                                                        (gpointer)&newinfo);
        g_signal_connect ((gpointer) item_edit_copy_all, "activate",
                                                        G_CALLBACK (on_item_edit_copy_all_activate),
                                                        (gpointer)&clist);
        g_signal_connect ((gpointer) item_edit_copy_link, "activate",
                                                        G_CALLBACK (on_item_edit_copy_link_activate),
                                                        (gpointer)&clist);                                               
        g_signal_connect ((gpointer) item_edit_update_group, "activate",
                    					G_CALLBACK (on_item_edit_update_group_activate),
                    					(gpointer)&addgroup);
        g_signal_connect ((gpointer) item_edit_update_info, "activate",
                    					G_CALLBACK (on_item_edit_update_info_activate),
                    					(gpointer)&newinfo);                                                                                                                            
        g_signal_connect ((gpointer) item_help_main, "activate",
                                                        G_CALLBACK (on_item_help_main_activate),
                                                        NULL);
        g_signal_connect ((gpointer) item_help_me, "activate",
                                                        G_CALLBACK (on_item_help_me_activate),
                                                        NULL);
         GLADE_HOOKUP_OBJECT (window_main, menubar, "menubar");
        GLADE_HOOKUP_OBJECT (window_main, menu_file, "menu_file");
        GLADE_HOOKUP_OBJECT (window_main, menu_file_menu, "menu_file_menu");
        GLADE_HOOKUP_OBJECT (window_main, item_file_new_info, "item_file_new_info");
        GLADE_HOOKUP_OBJECT (window_main, image111, "image111");
        GLADE_HOOKUP_OBJECT (window_main, item_file_add_group, "item_file_add_group");
        GLADE_HOOKUP_OBJECT (window_main, image112, "image112");
        GLADE_HOOKUP_OBJECT (window_main, item_file_save, "item_file_save");
        GLADE_HOOKUP_OBJECT (window_main, image113, "image113");
        GLADE_HOOKUP_OBJECT (window_main, separator_file, "separator_file");
        GLADE_HOOKUP_OBJECT (window_main, quit_easyblog, "quit_easyblog");
        GLADE_HOOKUP_OBJECT (window_main, image114, "image114");
        GLADE_HOOKUP_OBJECT (window_main, menu_edit, "menu_edit");
        GLADE_HOOKUP_OBJECT (window_main, menu_edit_menu, "menu_edit_menu");
        GLADE_HOOKUP_OBJECT (window_main, item_edit_delete_info, "item_edit_delete_info");
        GLADE_HOOKUP_OBJECT (window_main, image115, "image115");
        GLADE_HOOKUP_OBJECT (window_main, separator_edit_one, "separator_edit_one");
        GLADE_HOOKUP_OBJECT (window_main, item_edit_delete_group, "item_edit_delete_group");
        GLADE_HOOKUP_OBJECT (window_main, image116, "image116");
        GLADE_HOOKUP_OBJECT (window_main, separator_edit_tow, "separator_edit_tow");
        GLADE_HOOKUP_OBJECT (window_main, item_edit_copy, "item_edit_copy");
        GLADE_HOOKUP_OBJECT (window_main, image117, "image117");
        GLADE_HOOKUP_OBJECT(window_main , item_edit_copy_menu,"item_edit_copy_menu");
        GLADE_HOOKUP_OBJECT(window_main , item_edit_copy_all,"item_edit_copy_all");
        GLADE_HOOKUP_OBJECT(window_main , image_edit_copy_all,"image_edit_copy_all");
        GLADE_HOOKUP_OBJECT( window_main, separator_edit_copy_all,"separator_edit_copy_all");
        GLADE_HOOKUP_OBJECT( window_main, item_edit_copy_link,"item_edit_copy_link");
        GLADE_HOOKUP_OBJECT( window_main, image_edit_copy_link,"image_edit_copy_link");
        GLADE_HOOKUP_OBJECT (window_main, separator_edit_three, "separator_edit_three");
        GLADE_HOOKUP_OBJECT (window_main, item_edit_update, "item_edit_update");
        GLADE_HOOKUP_OBJECT (window_main, image_edit_update, "image_edit_update");
	GLADE_HOOKUP_OBJECT (window_main, item_edit_update_menu,"item_edit_update_menu");
	GLADE_HOOKUP_OBJECT (window_main, item_edit_update_group,"item_edit_update_group");
	GLADE_HOOKUP_OBJECT (window_main, image_edit_update_group,"image_edit_update_group");
	GLADE_HOOKUP_OBJECT (window_main, separator_edit_update,"separator_edit_update");
	GLADE_HOOKUP_OBJECT (window_main, item_edit_update_info,"item_edit_update_info");
	GLADE_HOOKUP_OBJECT (window_main, image_edit_update_info,"image_edit_update_info");
        GLADE_HOOKUP_OBJECT (window_main, menu_help, "menu_help");
        GLADE_HOOKUP_OBJECT (window_main, menu_help_menu, "menu_help_menu");
        GLADE_HOOKUP_OBJECT (window_main, item_help_main, "item_help_main");
        GLADE_HOOKUP_OBJECT (window_main, image118, "image118");
        GLADE_HOOKUP_OBJECT (window_main, separator_help, "separator_help");
        GLADE_HOOKUP_OBJECT (window_main, item_help_me, "item_help_me");
        GLADE_HOOKUP_OBJECT (window_main, image119, "image119");                                                                       
        
        return menubar;
}
